package com.ibuu.demos.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ibuu.demos.pojo.*;
import com.ibuu.dto.OrderDTO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CategoriesService extends IService<Categories> {

    public List<Categories> getCategories();

    List<Categories> getCategoriesBykind(Integer id);

    void addCategories(Categories categories, HttpServletRequest request);

    public List<ShopingCar> getShopingCar(String name);

    void jianCategories(Categories categories,HttpServletRequest request);

    public ShopingCar getShopingCarById(Integer id,String name);

    public void deleteCategories(String  username) ;
//    public List<OrderDTO> getDetails(HttpServletRequest request);
public Page<OrderDTO> getDetails(HttpServletRequest request, int pageNum, int pageSize);

    void add(Categories categories);

    void removeid(Integer id);

    void updateid(Categories categories);
    public Page<OrderDTO> admingetDetails( int pageNum, int pageSize);
}
